<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
  <head><title>Simple jsp page</title></head>
  <script type='text/javascript' src='dwr/engine.js'> </script>
  <script type='text/javascript' src='dwr/util.js'> </script>
  <script type='text/javascript' src='dwr/interface/DWRServlet.js'></script>
  <body>

  <button onclick="DWRServlet.doSmth(function(str) {alert(str)});">doSmth</button>
  <button onclick="DWRServlet.getPerson(function(person) {alert(person.name + ' ' + person.age)});">getPerson</button>
  <button onclick="DWRServlet.getArray(function(array) {alert(array);});">getArray</button>
  <button onclick="DWRServlet.getArrayFlat(function(array) {alert(array);});">getArray</button>



  </body>
</html>